package com.xxx.file;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/22  14:50
 * @Copyright
 */
public class BufferedReaderDmoe {
    public static void main(String[] args) {
        try(
                BufferedReader reader = new BufferedReader(new FileReader("a.txt"))
                ) {
          String s = null;
          while ((s = reader.readLine()) != null ){
              System.out.println(s);
          }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
